import * as ElementPlusIconsVue from '@element-plus/icons-vue';
const useElementPlusIconsVue = app => {
  if (!app) {
    console.error('app对象未正确传递，请检查代码');
    return;
  }
  for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component);
  }
  // 添加自定义图标
  app.config.globalProperties.$icon = {
    user: 'User',
    email: 'Message',
    lock: 'Lock',
    code: 'Key',
    arrow: 'ArrowRight'
  };
};
export default useElementPlusIconsVue;